package com.duan.normal.controller;

import com.duan.common.beans.vo.ResponseVO;
import com.duan.common.utils.ResponseUtil;
import com.duan.normal.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by duanlsh on 18/6/13.
 */
@RestController()
public class DemoController {


    @Autowired
    private ProductService productService;

    @GetMapping("/list")
    public ResponseVO add() {
        System.out.println("DemoController.add");
        productService.insert(null);
        return ResponseUtil.success();
    }

//    public
}
